Creates a new KeyEvent instance with the KEY_UP event type and the given params.
KeyEvent
params
a new KeyEvent instance
the key event parameters
if the event creation has been failed
when the document is closed